export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/destinations/index',
    'pages/destinations/add/index',
    'pages/destinations/edit/index'
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '旅行记录',
    navigationBarTextStyle: 'black'
  },
  permission: {
    'scope.userLocation': {
      desc: '您的位置信息将用于显示您与目的地的距离'
    }
  },
  requiredPrivateInfos: [
    'getLocation'
  ],
  plugins: {
    // 腾讯位置服务插件
    chooseLocation: {
      version: '1.0.9',
      provider: 'wx76a9a06e5b4e693e'
    }
  },
  tabBar: {
    custom: true,
    color: '#64748b',
    selectedColor: '#4facfe',
    backgroundColor: '#ffffff',
    list: [
      {
        pagePath: 'pages/index/index',
        text: '首页'
      },
      {
        pagePath: 'pages/destinations/index',
        text: '目的地'
      }
    ]
  }
})
